export function changelocation(path) {
    const url = window.location;
    let port;
    if (process.env.NODE_ENV === 'development') {
      // 开发环境
      port = url.port;
      return url.protocol + '//' + url.hostname.replace('user.', '') + ':' + port + path;
    }
    // 生产环境
    return url.protocol + '//' + url.hostname + path;
  }
